package com.day0424;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/25   11:42
 * @Description描述
 **/

public class MainTest {
    public static void main(String[] args) {
//        Person person=new China();
//        person.eat();
//
//        person=new Usa();
//        person.eat();

        Person person=new China();
        person.eat();

        China china=(China)person;
        china.eat();

    }
    public static void eatSome(Person person){
        person.eat();
    }

}
